package demo2;

public class Test {
    public static void main(String[] args) {
        OuterClass out = new OuterClass();
        //实例类部类的对象，如果想要被获取，必须要有一个外部类对象（如上一行）
        OuterClass.InnerCalss inner = out.new InnerCalss();
        OuterClass.InnerCalss inner2 = new OuterClass().new InnerCalss();

        inner.func();
    }
}





